eststo clear
local O  smv 
foreach o of local O{

eststo: reghdfe `o' S_sourcing ln_q_b_garment signatory if `o'!=., abs(fmy dd cohort_b  data_fem) vce(cluster b_id line)
  quietly estadd local CTRL ="\scriptsize{B}", replace  
  quietly estadd local est ="OLS", replace  
  quietly estadd local FE ="sm($\tau$),$\tau$", replace  
  quietly estadd local CTRL2 ="Yes", replace    
  quietly estadd scalar  U =  . , replace   
  
eststo: reghdfe `o' S_sourcing ln_q_b_garment signatory i.line  if `o'!=., abs(fmy  cohort_b dd  data_fem) vce(cluster b_id line)
  quietly estadd local CTRL ="\scriptsize{B}", replace  
  quietly estadd local est ="OLS", replace  
  quietly estadd local FE ="sm($\tau$),sl,$\tau$", replace  
  quietly estadd local CTRL2 ="Yes", replace    
  quietly estadd scalar  U =  . , replace   
}
*
local O  EFF Nw shH
foreach o of local O{

eststo: reghdfe `o' S_sourcing ln_q_b_garment signatory if `o'!=., abs(fmy dd cohort_b  data_fem) vce(cluster b_id line)
  quietly estadd local CTRL ="\scriptsize{B}", replace  
  quietly estadd local est ="OLS", replace  
  quietly estadd local FE ="sm($\tau$),$\tau$", replace  
  quietly estadd local CTRL2 ="Yes", replace    
  quietly estadd scalar  U =  . , replace   
  
eststo: reghdfe `o' S_sourcing ln_q_b_garment signatory   if `o'!=., abs(fmy line  cohort_b dd  data_fem) vce(cluster b_id line)
  quietly estadd local CTRL ="\scriptsize{B}", replace  
  quietly estadd local est ="OLS", replace  
  quietly estadd local FE ="sm($\tau$),sl,$\tau$", replace  
  quietly estadd local CTRL2 ="Yes", replace    
  quietly estadd scalar  U =  . , replace   
}
*
esttab using "${tables}\Table5.tex", ///
  title("Buyers' Sourcing and Labor Usage" \label{LaborUsage}) ///
  label replace booktabs b(3) se(3) noconstant obslast substitute(\_ _) ///
  keep(S_sourcing) order() /// 
  stats(FE   r2   N   , fmt( %~#s   2 %12.0fc  )  ///
  labels("FEs"  `"\(R^{2}\)"'  "Obs."  ))   ///
  star(* 0.10 ** 0.05 *** 0.01) ///
  nonotes  